﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace TTData
{
    /// <summary>
    /// Object that holds information about the regions in the game
    /// </summary>
    public static class Region
    {
        public const String SALZBURG = "Salzburg";
        public const String BAIERN = "Baiern";
        public const String POLEN = "Polen";
        public const String BOHMEN = "Bohmen";
        public const String HOHENZOLLERN = "Hohenzollern";
        public const String SCHWEIZ = "Schweiz";
        public const String WURTTEMBERG = "Wurttemberg";
        public const String TYROI = "Tyroi";
        public const String BADEN = "Baden";
        public const Int32  REGIONS_COUNT = 9;

        /// <summary>
        /// Find out the number of cities in a region
        /// </summary>
        /// <param name="region">the region name where you want to search for the number of cities</param>
        /// <returns>the number of cities in the city</returns>
        public static Int32 GetRegionCitiesCount(String region)
        {
            if (region == SALZBURG)
                return 2;
            else if (region == BAIERN)
                return 8;
            else if (region == POLEN)
                return 1;
            else if (region == BOHMEN)
                return 2;
            else if (region == HOHENZOLLERN)
                return 1;
            else if (region == SCHWEIZ)
                return 2;
            else if (region == WURTTEMBERG)
                return 2;
            else if (region == TYROI)
                return 1;
            else if (region == BADEN)
                return 3;
            else return -1;
        }

    }
}
